package com.mm.dao;

import com.mm.model.Protection;

@Mapper
public interface ProtectionMapper {
	/**
	 * 保存保障
	 *
	 * @param protection Protection
	 */
	void insertProtection(Protection protection);

	/**
	 * 更新保障
	 *
	 * @param protection Protection
	 */
	void updateProtectionById(Protection protection);

	/**
	 * 获取保障
	 *
	 * @param protectionId 保障ID
	 * @return Protection
	 */
	Protection getOneProtectionById(Long protectionId);

	/**
	 * 通过保障ID删除保障
	 *
	 * @param protectionId 保障ID
	 */
	void deleteProtectionById(Long protectionId);
}